
export const StatusCode = {
    SUCCESS: 200,
    FAILED: 201
}

export default {
    success(data, message = "success") {
        return {
            code: StatusCode.SUCCESS,
            time: new Date().getTime(),
            message: message,
            data: data
        }
    },

    failed(data, message = "failed") {
        return {
            code: StatusCode.FAILED,
            time: new Date().getTime(),
            message: message,
            data: data
        }
    }
}

